<include file='Common:header'/>
<script type="text/javascript" src="__PUBLIC__/admin/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/js/select-ui.min.js"></script>
<script charset="utf-8" type="text/javascript" src="__PUBLIC__/includes/javascript/jquery.plugins/jquery.validate.js" ></script>
<script type="text/javascript" src="__PUBLIC__/admin/my97/WdatePicker.js"></script>
<style type="text/css">
	select {
		opacity : 1;
		border: 1px solid silver;
		height: 25px;
		margin-top: 5px;
	}
</style>
<script type="text/javascript">
//<!CDATA[
$(function(){
	
    $('#appForm').validate({
        errorPlacement: function(error, element){
            $(element).next('.field_notice').hide();
            $(element).after(error);
        },
        success       : function(label){
            label.addClass('right').text('OK!');
        },
        onkeyup    : false,
        rules : {
        	brand_name: {
                required: true
            },
            title: {
                required: true
            },
            notice: {
                required: true
            },
            description: {
                required: true
            },
            start_time: {
                required: true
            },
            end_time: {
                required: true
            },
            
            skuNum: {
                required : true,
                number:true
            },
            use_limit: {
            	number:true
            },
            get_limit: {
            	number:true
            },
            least_cost: {
            	number:true
            },
            reduce_cost: {
                required: true,
                number:true
            }
            
            
        },
        messages : {
        	brand_name: {
                required: '请输入商户名字'
            },
            title: {
                required: '请输入券名'
            },
            notice: {
                required: '请输入使用提醒'
            },
            description: {
                required: '请输入使用说明'
            },
            start_time: {
                required: '请输入开始时间'
            },
            end_time: {
                required: '请输入结束时间'
            },
            skuNum: {
                required: '请输入卡券库存的数量',
                number:'请输入数字'
            },
            use_limit: {
                number:'请输入数字'
            },
            get_limit: {
                number:'请输入数字'
            },
            least_cost: {
                number:'请输入数字'
            },
            reduce_cost: {
                required: '请输入减免金额',
                number:'请输入数字'
            }
            
            
        }
    });
});


function checkFile() {
	if($("#csv").val() == "") {
		alert("请上传数据文件！");
		return false;
	}
}
//]]>
</script>
<style>
	.info2{
		margin-left:100px;
		margin-top: 20px;
	}
	.info2 table tr th{
		line-height:40px;
		text-align:left;
	}
	.info2 p{
		line-height:20px;
		margin-top: 10px;
	}
	.submit_btn{
		width: 137px;
		height: 35px;
		background: url(__PUBLIC__/admin/images/btnbg.png) no-repeat;
		font-size: 14px;
		font-weight: bold;
		color: #fff;
		cursor: pointer;
	}
</style>
<body>
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">微信用户明细</a></li>
    </ul>
</div>

	
	
<div class="formbody">
		<div id="tab2" class="tabson">
<!-- 			<form action="<{:U('edit')}>" id="appForm" method="post"> -->
			    <table style="line-height: 40px;">
			        <tr>
			            <th>编号：</th>
			            <td><input type="text" name="id" class="dfinput"  size="50"  readonly="readonly" value="<{$one.id}>"/></td>
			        </tr>
			        <tr>
			            <th>微信openid：</th>
			            <td><input type="text" name="openid" class="dfinput"  size="50"   readonly="readonly" value="<{$one.openid}>"/></td>
			        </tr>
			        <tr>
			            <th>微信昵称：</th>
			            <td><input type="text" name="wx_nickname" class="dfinput"  size="50"   readonly="readonly" value="<{$one.wx_nickname}>"/></td>
			        </tr>
			        <tr>
			            <th>性别：</th>
			            <td><input type="text" name="wx_sex" class="dfinput"  size="50"   readonly="readonly" value="<if condition="$one['wx_sex'] eq 1">男<elseif condition="$one['wx_sex'] eq 2" />女<else/>未知</if>"/></td>
			        </tr>
			        <tr>
			            <th>头像：</th>
			            <td>
			            	<if condition="$one.wx_photo eq ''">
		        		
				        	<else/>
				        		<a href="<{$one.wx_photo}>" target="_blank"><img src="<{$one.wx_photo}>" style="width: 200px; height: 200px; padding-top: 10px; padding-bottom: 10px;"/></a>
				        	</if>
			            </td>
			        </tr>
			        <tr>
			            <th>国家：</th>
			            <td><input type="text" name="wx_country" class="dfinput"  size="50" readonly="readonly"  value="<{$one.wx_country}>"/></td>
			        </tr>
			        <tr>
			            <th>省份：</th>
			            <td><input type="text" name="wx_province" class="dfinput"  size="50" readonly="readonly"  value="<{$one.wx_province}>"/></td>
			        </tr>
			        <tr>
			            <th>城市：</th>
			            <td><input type="text" name="wx_city" class="dfinput"  size="50" readonly="readonly"  value="<{$one.wx_city}>"/></td>
			        </tr>
			        <tr>
			            <th>客户编号：</th>
			            <td><input type="text" name="clientCode" class="dfinput"  size="50" readonly="readonly"  value="<{$one.clientCode}>"/></td>
			        </tr>
			        <tr>
			            <th>分店编号：</th>
			            <td><input type="text" name="compCode" class="dfinput"  size="50"  readonly="readonly" value="<{$one.compCode}>"/></td>
			        </tr>
			         <tr>
			            <th>分店名称：</th>
			            <td><input type="text" name="compName" class="dfinput"  size="50" readonly="readonly"  value="<{$one.compName}>"/></td>
			        </tr>
			        <tr>
			            <th>区域：</th>
			            <td><input type="text" name="areaName" class="dfinput"  size="50" readonly="readonly"   value="<{$one.areaName}>"/></td>
			        </tr>
			        <tr>
			            <th>SA ID：</th>
			            <td><input type="text" name="saId" class="dfinput"  size="50" readonly="readonly"   value="<{$one.saId}>"/></td>
			        </tr>
			        <tr>
			            <th>SA：</th>
			            <td><input type="text" name="sa" class="dfinput"  size="50" readonly="readonly"  value="<{$one.sa}>"/></td>
			        </tr>
			        
			        <tr>
			            <th>绑定的姓名：</th>
			            <td><input type="text" name="bindingName" class="dfinput"  size="50"  readonly="readonly"  value="<{$one.bindingName}>"/></td>
			        </tr>
			        <tr>
			            <th>绑定的手机：</th>
			            <td><input type="text" name="bindingPhone" class="dfinput"  size="50" readonly="readonly"   value="<{$one.bindingPhone}>"/></td>
			        </tr>
			        <tr>
			            <th>会员等级：</th>
			            <td><input type="text" name="levelID" class="dfinput"  size="50" readonly="readonly"  value="<{$one.levelID}>"/></td>
			        </tr>
			        <tr>
			            <th>车牌号：</th>
			            <td>
			            	<table  bordercolor=#ccffcc width=100%>
					        	<foreach name="one.carNO" item="one_car">
					        		<tr><td><a href="<{:U('userAllCar',array('clientCode'=>$one['clientCode']))}>"><{$one_car}></a></td></tr>
					        	</foreach> 
						    </table>	
			            </td>
			        </tr>
			        <tr>
			            <th>预约的总次数：</th>
			            <td><input type="text" name="orderCount" class="dfinput"  size="50" readonly="readonly"  value="<{$one.orderCount}>"/></td>
			        </tr>
			        
			        <tr>
			            <th>预约的年龄：</th>
			            <td><input type="text" name="ageCount" class="dfinput"  readonly="readonly" size="50"   value="<{$one.ageCount}>"/></td>
			        </tr>
			        <tr>
			            <th>年均预约的次数：</th>
			            <td><input type="text" name="yearAvgCount" class="dfinput"  size="50"  readonly="readonly"  value="<{$one.yearAvgCount}>"/></td>
			        </tr>
			        
			       
			    </table>
<!-- 		    </form> -->
		    <script>
		    	function checkRadioType(type) {
		    		if(type == 0) {
		    			$("#dealer_province").hide();
		    		} else {
		    			$("#dealer_province").show();
		    		}
		    		
		    	}
				
		    	
		    	
		    </script>
		</div>
<!-- 	</div>  -->
	<script type="text/javascript"> 
      $("#usual1 ul").idTabs(); 
    </script>
    <script type="text/javascript">
		$('.tablelist tbody tr:odd').addClass('odd');
	</script>
	
    </div>
 <include file='Common:footer'/>